package com.cqupt.pojo;

/**
 * 主机接口对象，封装主机相关接口信息
 * 分为：
 * （1）agent接口设备
 * （2）SNMP接口设备
 */
public class Interface {
    private String interfaceid;
    private String dns;
    private String hostid;
    private String ip;
    private String port;
    private Integer main;
    private Integer type;
    private Integer useip;
    private Integer version;
    private String community;
    private Integer bulk;

    /**
     * SNMP接口的构造
     * @param dns
     * @param ip
     * @param port
     * @param main
     * @param type
     * @param useip
     * @param version
     * @param community
     * @param bulk
     */
    public Interface(String dns, String ip, String port, Integer main, Integer type, Integer useip, Integer version, String community, Integer bulk) {
        this.interfaceid = interfaceid;
        this.dns = dns;
        this.hostid = hostid;
        this.ip = ip;
        this.port = port;
        this.main = main;
        this.type = type;
        this.useip = useip;
        this.version = version;
        this.community = community;
        this.bulk = bulk;
    }

    /**
     * agent接口的构造
     * @param dns
     * @param ip
     * @param port
     * @param main
     * @param type
     * @param useip
     */
    public Interface(String dns, String ip, String port, Integer main, Integer type, Integer useip) {
        this.dns = dns;
        this.hostid = hostid;
        this.ip = ip;
        this.port = port;
        this.main = main;
        this.type = type;
        this.useip = useip;
    }
    public Interface(){}

    public Integer getBulk() {
        return bulk;
    }

    public void setBulk(Integer bulk) {
        this.bulk = bulk;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community;
    }

    public String getInterfaceid() {
        return interfaceid;
    }

    public void setInterfaceid(String interfaceid) {
        this.interfaceid = interfaceid;
    }

    public String getDns() {
        return dns;
    }

    public void setDns(String dns) {
        this.dns = dns;
    }

    public String getHostid() {
        return hostid;
    }

    public void setHostid(String hostid) {
        this.hostid = hostid;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public Integer getMain() {
        return main;
    }

    public void setMain(Integer main) {
        this.main = main;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getUseip() {
        return useip;
    }

    public void setUseip(Integer useip) {
        this.useip = useip;
    }

    @Override
    public String toString() {
        return "Interface{" +
                "interfaceid='" + interfaceid + '\'' +
                ", dns='" + dns + '\'' +
                ", hostid='" + hostid + '\'' +
                ", ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", main=" + main +
                ", type=" + type +
                ", useip=" + useip +
                ", version=" + version +
                ", community='" + community + '\'' +
                ", bulk=" + bulk +
                '}';
    }
}
